#include "src/Bonus.h"
#include <stdlib.h>

Bonus * initBonus (int x, int y, char type)
{
	Bonus * bonus = malloc(1*sizeof(Bonus)) ;
	bonus->x_Bonus = x ;
	bonus->y_Bonus = y ;
	bonus->type_Bonus = type ;
	return bonus ;
}

void detruireBonus (Bonus * bonus)
{
	free(bonus) ;
}

void setTypeBonus (Bonus * bonus, char type_Bonus)
{
	bonus->type_Bonus = type_Bonus ;
}

char getTypeBonus (Bonus * bonus)
{
	char type ;
	type = bonus->type_Bonus ;
	return type ;
}

void setCoordXBonus (Bonus * bonus, int x)
{
	bonus->x_Bonus = x ;
}

int getCoordXBonus (Bonus * bonus)
{
	int x ;
	x = bonus->x_Bonus ;
	return x ;
}

void setCoordYBonus (Bonus * bonus, int y)
{
	bonus->y_Bonus = y ;
}

int getCoordYBonus (Bonus * bonus)
{
	int y ;
	y = bonus->y_Bonus ;
	return y ;
}
